Skip to main content

Motor

The motor allows you to control what the bearings and pistons should do.


Functions

setBearingSpeed

Motor.setBearingSpeed( speed )

Sets the bearing(s) speed

Arguments:

  • speed [ number ] The speed to set to bearing(s).

setBearingAngle

Motor.setBearingAngle( angle )

Sets the bearing(s) angle. Set it to nil to turn into an engine, or else (a number) to a controller.

Arguments:

  • angle [ number? ] The angle to set to bearing(s).

setPistonSpeed

Motor.setPistonSpeed( speed )

Sets the piston(s) speed.

Arguments:

  • speed [ number ] The speed to set to piston(s).

setTorque

Motor.setTorque( torque )

Sets the bearing(s) torque.

Arguments:

  • torque [ number ] The torque to set to bearing(s).

setLength

Motor.setLength( length )

Sets the piston(s) length.

Arguments:

  • length [ number ] The length to set to piston(s).

setForce

Motor.setForce( force )

Sets the piston(s) force.

Arguments:

  • force [ number ] The force to set.